home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group00a.txt / 000172_icon-group-sender _Fri Jun 30 12:31:59 2000.msg < prev    next >
Internet Message Format  |  2001-01-03  |  1KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id MAA12426
  4.     for icon-group-addresses; Fri, 30 Jun 2000 12:31:08 -0700 (MST)
  5. Message-Id: <200006301931.MAA12426@baskerville.CS.Arizona.EDU>
  6. From: Kostas Oikonomou <oikonomou@att.com>
  7. X-Newsgroups: comp.lang.icon
  8. Subject: Approximate comparisons of reals
  9. Date: Fri, 30 Jun 2000 11:32:55 -0400
  10. X-Accept-Language: en
  11. To: icon-group@optima.CS.Arizona.EDU
  12. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  13. Status: RO
  14.  
  15. I'm trying to write Icon procedures that implement the approximate <, >,
  16. and =
  17. relations for real numbers that are in Knuth Vol. 2, section 4.2.2, p.
  18. 218 in
  19. the 2nd ed.  I would  like to put these in a library.
  20.  
  21. It seems to me that to write such procedures efficiently one needs
  22. access to the floating
  23. point representation of reals, i.e. fractional part and exponent.
  24.  
  25. Is it possible ro access the representation of reals in Icon?  Or has
  26. someone already written something like this?
  27.  
  28.                                                        Kostas
  29.  
  30.  
  31.